@use "../variables" as *;
@use "sass:color";

.sequence-page {
  max-width: unset;
  padding: 8.6rem 0rem 0;
  .sequences-page-grid {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: stretch;
    gap: 0;
  }
}

.designer-sequence-list-panel {
  .panel-content {
    max-height: calc(100vh - 16.5rem);
    overflow-y: scroll;
    overflow-x: hidden;
    @media screen and (max-width: $mobile_max_width) {
      max-height: calc(100vh - 19rem);
    }
    a {
      text-decoration: none !important;
      p {
        font-size: 1.4rem;
        font-weight: normal !important;
      }
    }
    .folders-panel {
      margin-left: -1rem;
      margin-right: -1rem;
    }
  }
}

.designer-sequence-editor-panel {
  .panel-header {
    color: $dark_gray;
  }
  .panel-content {
    .sequence-editor-content {
      overflow: hidden;
      @media screen and (max-width: 767px) {
        margin-left: 5px;
        padding-right: 0;
      }
    }
    .add-command-button-container {
      display: inline;
    }
    .drag-drop-area {
      display: none;
    }
    label {
      margin-top: 0;
    }
    @media screen and (max-width: 767px) {
      padding: 0;
    }
  }
}

.sequence-editor-panel {
  background: $light_gray;
  padding: 0 1rem;
  height: calc(100vh - 8.5rem);
  overflow: scroll;
  @media screen and (max-width: 767px) {
    display: none;
    &.open {
      display: block;
      &.inserting-item,
      &.inserting-step {
        display: none;
      }
    }
  }
  h3 {
    margin-top: 1rem;
  }
  .bp5-popover-target .saucer {
    float: left;
  }
  @media screen and (max-width: 767px) {
    h3,
    p {
      margin-left: 15px;
      margin-right: 15px;
    }
    h3 {
      max-width: 60%;
      margin-left: 0;
      margin-right: 0;
      margin-bottom: 2.5rem;
      padding-left: 0 !important;
    }
    .title-help-text {
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  .sequence-editor-content {
    .sequence-description {
      .description-input {
        padding-right: 1rem;
      }
      a {
        text-decoration: underline !important;
      }
    }
  }
  .copy-item {
    &:hover {
      background: $lighter_gray !important;
    }
  }
}

.farm-event-form-content,
.designer-regimen-editor-panel,
.sequence-editor-panel {
  .sequence-section-header {
    &:hover {
      background: $translucent1!important;
    }
  }
}

.farm-event-form-content {
  .sequence-section-header {
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: 1rem;
    height: 4rem;
    .fa-caret-up,
    .fa-caret-down,
    label {
      margin-top: 0;
      line-height: 4rem;
    }
    &:hover {
      background: color.adjust($panel_light_yellow, $lightness: -10%) !important;
    }
  }
}

.sequence-editor-content,
.regimen-editor-content {
  @media screen and (max-width: 767px) {
    margin-left: 5px;
    margin-right: 0;
    padding-right: 2rem;
  }
}

.sequence-editor-content {
  .import-banners {
    margin-bottom: 1rem;
  }
  .public-copy-toolbar {
    margin: 1rem;
    text-align: right;
    p {
      float: left;
      max-width: 50%;
      line-height: 2rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    a {
      vertical-align: middle;
      margin-left: 1rem;
    }
    button {
      float: none;
      vertical-align: top;
    }
    .fa-code {
      float: none;
      margin-right: 1rem;
    }
  }
  .upgrade-compare-banner {
    display: flex;
    margin-left: -15px;
    box-shadow: 0 5px 10px -5px $translucent;
    .copy-item {
      width: 100%;
      height: 3.5rem;
      padding: 0.75rem;
      text-align: center;
      cursor: pointer;
      &:hover {
        background: $light_gray;
      }
      label {
        cursor: pointer;
      }
      .bp5-popover-wrapper {
        display: inline;
      }
      .bp5-button-text,
      p {
        display: inline-block;
        width: max-content;
        height: 2rem;
        margin-left: 0.5rem;
        padding: 5px;
        padding-top: 3px;
        border-radius: 3px;
        color: $white;
        background: $panel_blue;
        font-weight: bold;
        font-size: 1rem;
        i {
          margin-left: 0.5rem;
        }
      }
      .filter-search {
        display: inline-block;
        button {
          min-height: 0;
          height: 2rem !important;
          margin-left: 0.5rem;
          background: $panel_blue !important;
          border-radius: 3px;
          color: $white !important;
          font-weight: bold;
          font-size: 1rem !important;
        }
        .fa-caret-down {
          right: 0;
          line-height: 2.25rem;
          color: $white;
        }
        .bp5-button {
          padding-left: 0.5rem;
        }
        .bp5-button-text {
          margin-left: 0;
          padding-left: 0;
          line-height: 1.5rem;
        }
      }
      &.selected {
        border-bottom: 3px solid $dark_gray;
      }
    }
  }
}

.sequence-editor-sections {
  .sequence-description {
    background: var(--secondary-bg);
    border-radius: 0.5rem;
    textarea {
      height: 10rem;
      padding-bottom: 2rem;
    }
    .markdown {
      padding: 1rem;
    }
    .description-editor-tools {
      .char-limit {
        font-size: 1rem;
        color: $medium_gray;
        &.over {
          color: $darkest_red;
        }
      }
    }
  }
}

.sequence-description {
  .markdown {
    display: block;
    min-height: 10rem;
    max-height: 20rem;
    overflow-y: auto;
    border-radius: 0.5rem;
    p {
      display: revert;
      margin: revert;
      width: 100%;
      overflow: revert;
      white-space: revert;
      text-transform: revert;
      font-size: 16px;
      line-height: 140%;
      margin: 1rem 0;
      margin-bottom: 0.5rem !important;
    }
    img {
      max-width: 100%;
      border-radius: 5px;
      border: 3px solid $lighter_gray;
    }
    ul {
      list-style-type: revert !important;
      padding: revert;
      font-size: 1.1rem;
    }
    li {
      font-size: 1.6rem;
    }
    :first-child {
      margin-top: 0;
    }
    h1 {
      font-size: 30px;
    }
    h2 {
      font-size: 25px;
    }
    h3 {
      font-size: 20px;
    }
    h1, h2, h3 {
      display: block;
      margin-top: 2rem;
    }
  }
}

.sequence-item-help {
  li {
    font-size: 1rem;
  }
}

.sequence-item-help,
.sequence-description {
  .markdown {
    p {
      margin-bottom: 0.5rem !important;
    }
    ul {
      list-style-type: revert !important;
      padding: revert;
      font-size: 1.1rem;
    }
  }
  h1 {
    font-size: 2.2rem;
  }
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 1.8rem;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    display: block;
    font-weight: bold;
    line-height: 1;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
}

.designer-sequence-list-panel-content {
  .panel-top {
    display: none;
  }
  .sequence-section-header {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    grid-auto-flow: column;
    align-items: center;
    label {
      margin: 0;
      font-size: 1.3rem;
    }
  }
  .show-on-hover {
    display: none !important;
  }
  @media screen and (max-width: $mobile_max_width) {
    .show-on-hover {
      display: flex !important;
    }
  }
  .sequence-list-item {
    &:hover {
      background: var(--secondary-bg);
      .show-on-hover {
        display: flex !important;
      }
    }
    &.hovered {
      .fa-question-circle,
      .run-btn,
      .fa-ellipsis-v {
        display: block;
      }
    }
  }
}

.farm-event-form-content,
.regimen-editor-content,
.designer-sequence-list-panel-content,
.sequence-editor-sections {
  .sequence-section-header {
    position: relative;
    cursor: pointer;
    margin: 0 -1rem;
    padding: 0 1rem;
    height: 4rem;
    line-height: 3.75rem;
    &:hover {
      background: $translucent1!important;
    }
    label {
      cursor: pointer;
      margin-top: 0;
    }
    .fa-caret-up,
    .fa-caret-down {
      font-size: 2rem;
      margin-right: 0.5rem;
    }
    .bp5-popover-wrapper {
      display: contents;
    }
  }
}

.preview-description {
  .sequence-description {
    .markdown {
      border: none;
    }
  }
}

.sequence-editor-tools {
  input {
    margin: 0.75rem;
  }
  .title {
    padding: 1.25rem;
    font-size: 1.6rem;
    font-weight: bold;
  }
  &.page {
    i {
      color: $dark_gray;
      &.inactive {
        color: $placeholder_gray;
      }
    }
    &.blue {
      background: $blue;
    }
    &.green {
      background: $green;
    }
    &.yellow {
      background: $yellow;
    }
    &.orange {
      background: $orange;
    }
    &.purple {
      background: $purple;
    }
    &.pink {
      background: $pink;
    }
    &.gray {
      background: $gray;
    }
    &.red {
      background: $red;
    }
  }
}

.sequence-editor-tools,
.regimen-editor-tools {
  border-bottom: 1.5px solid $translucent1;
}

.preview-variables {
  .locals-list {
    pointer-events: none;
  }
}

.locals-list {
  display: grid;
  gap: 1rem;
  .location-form, .custom-coordinate-form {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 0.5rem;
  }
  .default-value-form, .custom-coordinate-form {
    margin: 0 3.5rem;
  }
  .location-form-content {
    .bp5-popover-wrapper {
      display: inline-block;
      margin-left: 1rem;
    }
    .variable-icon {
      width: 2.5rem;
      text-align: center;
      cursor: default !important;
    }
    p {
      display: inline;
      font-size: 1.2rem;
    }
    .variable-label {
      font-weight: bold;
    }
    .no-location-coordinate-input-boxes,
    .no-default-value-form {
      display: none;
    }
  }
  .numeric-variable-input,
  .text-variable-input {
    margin-right: 3.5rem;
  }
}

.license {
  p {
    padding-bottom: 1rem;
    line-height: 1.5rem;
    margin-right: 1rem;
    margin-left: 1.5rem;
  }
}

.sequence-steps {
  margin-right: 2.5rem;
  .sequence-step {
    &.hovered {
      box-shadow: 0px 0px 15px #ff7700;
    }
    &.read-only {
      margin-top: 1rem;
      margin-bottom: 1rem;
      .bp5-control,
      .filter-search,
      textarea,
      .input,
      input {
        pointer-events: none;
      }
    }
  }
}

.step-button-cluster {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 8rem);
  .commands, .pinned-sequences {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .step-button {
    label {
      cursor: pointer;
    }
    .clustered {
      float: left;
      box-shadow: none;
      color: $dark_gray;
      &.gray {
        background: $light_gray !important;
      }
    }
    &.highlight {
      .fb-button {
        box-shadow: 0px 0px 3px $light_gray;
      }
    }
  }
  &.designer-cluster {
    margin: 0;
    background: $dark_gray;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: unset;
    padding: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0;
    .commands {
      height: 10rem;
      overflow-y: auto;
      overflow-x: hidden;
    }
    .text-input-wrapper {
      border-bottom-color: $translucent8_white !important;
      input {
        color: $white;
      }
      &:before,
      &:after {
        background: $white !important;
      }
    }
  }
}

.step-button-cluster-panel {
  padding: 1rem;
  background: $dark_gray;
  @media screen and (max-width: 767px) {
    display: none;
    margin-left: 15px;
    margin-right: 15px;
    &.inserting-step {
      display: block;
    }
  }
  h3 {
    margin-top: 1rem;
    margin-left: -1rem;
    color: $white;
  }
  .bp5-popover-wrapper {
    display: inline;
    margin-left: 1rem;
    i {
      color: $white;
    }
  }
  .text-input-wrapper {
    border-bottom-color: $white !important;
    &:before,
    &:after {
      background: $white !important;
    }
    input {
      color: $white;
    }
  }
  .thin-search-wrapper {
    position: sticky;
    top: 0;
    z-index: 9;
    padding: 0.5rem;
    background: $dark_gray;
  }
}

.step-button-cluster {
  @media screen and (max-width: 767px) {
    margin-left: 0;
    margin-right: 0;
  }
}

.farmware-list-items,
.sequence-list-item {
  button {
    text-align: left;
    label {
      width: 90%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      margin-top: 0.5rem;
      float: left;
      cursor: pointer;
    }
  }
}

.folders-panel {
  margin-left: -30px;
  margin-right: -20px;
  margin-bottom: 4rem;
  @media screen and (max-width: 767px) {
    margin-left: -15px;
  }
  .panel-top {
    margin-left: 1rem !important;
    button {
      margin-top: 0.7rem !important;
    }
  }
  .panel-top,
  .folder-button-cluster {
    i {
      font-size: 1.5rem;
    }
    .fa-stack {
      font-size: 1rem;
      transform: scale(0.8);
    }
    .fa-stack-2x {
      font-size: 2rem;
    }
    .fa-stack-1x {
      font-size: 1.5rem;
      line-height: 1.5rem;
      margin-left: 0.75rem;
      filter: drop-shadow(0 0 0.25rem var(--main-bg));
      text-align: center;
    }
  }
  .folder-button-cluster {
    display: flex;
    .fb-icon-button {
      .fa-stack-1x {
        line-height: unset;
        margin-top: -1.25rem;
      }
      .fa-stack-2x {
        width: unset;
        line-height: unset;
      }
    }
  }
  ul {
    margin: 0;
  }
  .folder-drop-area {
    height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: height 0.5s ease-out,
    padding-top 0.5s ease-out,
    padding-bottom 0.5s ease-out;
    transition-delay: 0.4s;
    color: $gray;
    font-weight: bold;
    background: $white;
    text-align: center;
    cursor: pointer;
    &.visible {
      transition: height 0.3s ease-in,
      padding-top 0.3s ease-in,
      padding-bottom 0.3s ease-in;
      transition-delay: 0.2s;
      height: 3rem;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
    &:hover, &.hovered {
      color: $medium_gray;
    }
  }
  .folders {
    .folder > div:not(:first-child), ul {
      margin-left: 2rem;
    }
    .folder-list-item {
      &.moving {
        .drop-visual {
          position: absolute;
          top: 0.5rem;
          bottom: 0.5rem;
          left: 2.75rem;
          right: 3rem;
          border: 1px dashed $gray;
          border-radius: 3px;
        }
      }
      &.hovered {
        .drop-visual {
          border-color: $medium_gray !important;
        }
      }
      &.not-dragging {
        &:hover {
          .drop-visual {
            border-color: $medium_gray !important;
          }
        }
      }
    }
  }
  .folder-list-item,
  .sequence-list-item {
    display: flex;
    position: relative;
    width: 100%;
    height: 3.5rem;
    cursor: pointer;
    border-left: 4px solid transparent;
    &.active {
      border-left: 4px solid $dark_gray;
      p {
        font-weight: bold;
      }
    }
    .fa-chevron-down, .fa-chevron-right {
      position: absolute;
      z-index: 2;
      width: 3rem;
      font-size: 1.1rem;
    }
    .fb-button-popover-wrapper {
      margin-right: 0.25rem;
      button {
        margin-top: 0.75rem;
      }
    }
    .fa-question-circle,
    .run-btn,
    .fa-ellipsis-v {
      display: none;
    }
    .fa-question-circle,
    .run-btn,
    .fa-ellipsis-v {
      &.open {
        display: block;
      }
    }
    @media screen and (max-width: $mobile_max_width) {
      .fa-question-circle,
      .run-btn,
      .fa-ellipsis-v {
        display: block;
        margin-right: 0.5rem;
      }
    }
    &:hover {
      .fa-question-circle,
      .run-btn,
      .fa-ellipsis-v {
        display: block;
      }
    }
    i:not(.fb-icon-button) {
      margin: 0;
      line-height: 3.5rem;
      width: 3rem;
      text-align: center;
    }
    .saucer, .icon-saucer {
      position: absolute;
      margin: 0.5rem;
      width: 1.2rem;
      height: 1.2rem;
    }
    a {
      overflow: hidden;
      flex-grow: 1;
    }
    p {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 1.4rem;
      font-weight: normal;
      padding: 0.5rem;
      padding-left: 0;
      margin-left: 3rem;
      line-height: 2.5rem;
    }
    .folder-name {
      position: relative;
      width: 100%;
      margin-right: 3rem;
      margin-left: 6rem;
      p {
        margin-left: 0;
      }
      .folder-name-input {
        display: flex;
        button {
          margin-top: 0.75rem;
          width: auto;
          height: 2rem;
          i {
            line-height: 0;
            width: 1rem;
          }
        }
        .input {
          margin: 0.3rem;
          width: 90%;
        }
      }
    }
    .sequence-list-item-icons {
      display: flex;
      position: absolute;
      right: 0;
    }
    button {
      margin-left: 0.5rem;
    }
    &.move-source {
      box-shadow: 0 0 0 2px $dark_gray inset;
    }
    &.move-target {
      background: $white;
    }
  }
  .folder-list-item,
  .sequence-list-item {
    padding-left: 3rem;
    .bp5-popover-wrapper.color-picker {
      position: absolute;
      line-height: 0;
      .bp5-popover-target {
        width: 2rem;
        height: 3.5rem;
      }
    }
    .saucer, .icon-saucer {
      position: relative;
      top: 0.55rem;
      margin: auto;
      margin-top: 0.6rem;
      margin-right: 0;
    }
  }
  .folder-list-item {
    padding-left: 0;
    .bp5-popover-wrapper.color-picker {
      margin-left: 2.5rem;
    }
    .color-picker {
      .icon-saucer {
        top: 0;
        margin-top: 0;
        margin-left: 0.4rem;
      }
    }
  }
  .matched {
    background: $translucent2_white;
  }
  .non-empty-state {
    width: 100%;
  }
}

.sequence-list-item {
  &:hover:active {
    cursor: grab;
  }
}

.sequence-item-help {
  .info-grid-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.75rem;
    align-items: center;
    i {
      cursor: default !important;
    }
    p {
      line-height: 1.75rem;
    }
  }
  label {
    display: block;
  }
  img {
    max-width: 100%;
    border-radius: 5px;
    border: 2px solid var(--border-color);
  }
}

.folder-settings-icon,
.sequence-item-action-menu {
  .bp5-popover-content {
    padding: 0.5rem;
  }
}

.sequence-item-description {
  .bp5-popover-content {
    max-height: 20rem;
    overflow-y: auto;
    width: 32rem;
  }
}

.featured-sequence-list {
  .saucer {
    margin-left: 0.4rem !important;
  }
  p {
    margin-left: 1.5rem !important;
  }
}

.sequence-list-panel {
  @media screen and (max-width: 1075px) {
    margin-left: 15px;
  }
  .empty-state {
    display: none;
  }
  @media screen and (max-width: 767px) {
    margin-left: 15px;
    margin-right: 15px;
    &.open {
      display: none;
    }
    .empty-state {
      display: block;
    }
  }
}

.designer-regimen-list-panel {
  label {
    margin-top: 0 !important;
  }
  .add-regimen {
    height: 2rem;
  }
  .panel-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
  }
}

.farmware-list-items {
  margin-left: -15px;
}

.back-to-sequences {
  display: none;
  &.open {
    @media screen and (max-width: 767px) {
      display: block;
      margin-top: -2rem;
      float: left !important;
      height: 6rem;
      width: 4rem;
      font-size: 2rem;
      text-align: center;
      line-height: 6rem;
      margin-left: 15px;
      &.inserting-step,
      &.inserting-item {
        margin-left: 0;
      }
    }
  }
}

.drag-drop-area {
  @media screen and (max-width: 767px) {
    display: none;
  }
}

.add-command-button-container {
  display: none;
  position: absolute;
  z-index: 9;
  width: 100%;
  height: 0;
  button {
    margin: 0;
  }
  &.first,
  &.middle,
  &.last {
    .add-command {
      width: 20px;
      height: 20px;
      padding: 0.25rem;
      border-radius: 2rem;
      box-shadow: none !important;
      background: $dark_gray !important;
      i {
        font-size: 1.2rem;
        padding-top: 1px;

      }
    }
  }
  &.middle {
    .add-command {
      transform: rotate(-45deg);
      margin-top: -1.5rem;
      border-top-left-radius: 0;
      i {
        transform: rotate(45deg);
      }
    }
  }
  &.first {
    .add-command {
      border-top-left-radius: 0;
    }
  }
  &.last {
    .bp5-collapse {
      margin-top: 1rem;
      margin-right: 2.5rem;
    }
    .add-command {
      margin-top: -2rem;
      border-bottom-left-radius: 0;
    }
  }
  &.last {
    &.open {
      .add-command {
        margin-top: -1.5rem;
      }
    }
  }
  &.only {
    position: relative;
    margin: auto;
    text-align: center;
    height: 3rem;
    &.open {
      margin-left: 1rem;
      padding-right: 3rem;
    }
    .add-command {
      display: none;
    }
  }
  @media screen and (max-width: 767px) {
    display: block;
    .add-command {
      display: block;
    }
  }
  &.open {
    position: relative;
    .add-command {
      position: absolute;
      right: -2.5rem;
      transform: rotate(-45deg);
      i {
        transform: rotate(0);
      }
    }
    &.last {
      .add-command {
        right: 0;
        transform: rotate(45deg);
      }
    }
  }
}

.imported-banner,
.import-banner {
  margin: 0 -15px 0 -15px;
  padding: 1rem 1.5rem 1rem 2rem;
  background: color.adjust($orange, $alpha: -0.4);
  button {
    margin-right: 1rem;
  }
  label {
    display: inline-block;
    padding-left: 1rem;
  }
  .bp5-popover-wrapper {
    display: inline-block;
    margin-left: 1rem;
  }
  p {
    margin-left: 1rem;
  }
}

.import-banner {
  margin-bottom: 1rem;
}

.imported-banner {
  background: color.adjust($blue, $alpha: -0.4);
}

$border_width: 1.4px;
.transparent-button {
  text-transform: uppercase;
  font-size: 1.1rem;
  border: none;
  padding: 0.4rem 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 5px;
  color: $dark_gray;
  background: none;
  box-shadow: inset 0 0 0 $border_width $dark_gray;
  float: right;
  &:hover {
    background: $translucent1_white;
    box-shadow: inset 0 0 0 $border_width $dark_gray, 0 0 5px $translucent15, inset 0 0 5px $translucent3_white;
  }
  &:active {
    background: $translucent1;
    box-shadow: inset 0 0 0 $border_width $dark_gray;
  }
  &.light {
    box-shadow: inset 0 0 0 $border_width $off_white;
    &:hover {
      box-shadow: inset 0 0 0 $border_width $off_white, 0 0 5px $translucent15, inset 0 0 5px $translucent3_white;
    }
    &:active {
      box-shadow: inset 0 0 0 $border_width $off_white;
    }
  }
}

.sequence-publish-menu,
.sequence-share-menu {
  max-width: 300px;
  button {
    display: block;
    margin: auto;
    float: none;
    margin-top: 1rem;
  }
}

.sequence-publish-menu {
  .sequence-publish-message {
    text-align: left;
    p {
      padding-bottom: 1rem;
      line-height: 1.5rem;
    }
    a {
      display: inline;
      text-decoration: underline !important;
    }
    ul {
      list-style-type: "- " !important;
      padding: revert;
      padding-left: 1rem;
      font-size: 1.1rem;
      line-height: 1.5rem;
    }
    label {
      font-size: 1rem;
      margin-right: 1rem;
    }
    input {
      width: 50%;
    }
    .republish-warning {
      display: flex;
      margin: 0.75rem -10px 1rem -10px;
      padding: 1rem 1rem 0 1rem;
      background: color.adjust($orange, $alpha: -0.6);
      i {
        margin-right: 1rem;
        margin-top: 0.25rem;
      }
      p {
        font-weight: bold;
        padding-bottom: 0.5rem;
      }
    }
  }
  button {
    margin: 0;
    margin-top: 1rem;
    .fa-spinner {
      margin-left: 0.5rem;
    }
  }
}

.sequence-share-menu {
  text-align: center;
  a {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    &:hover {
      color: $black;
      font-weight: normal;
    }
  }
  .versions-table {
    margin-top: 2rem;
    text-align: left;
    .bp5-popover-wrapper {
      display: inline-block;
      margin-left: 1rem;
    }
    .fb-button.gray {
      margin: 0;
      float: right;
    }
    .row {
      margin-top: 0.5rem;
    }
    p {
      width: max-content;
      padding: 5px;
      border-radius: 3px;
      color: $white;
      background: $panel_blue;
    }
    .fa-link {
      float: right;
      margin-top: 0.75rem;
    }
  }
  .fb-button.white {
    color: $darkest_red;
    text-transform: none;
    font-weight: normal;
    background: $white;
    .fa-spinner {
      margin-left: 0.5rem;
    }
    &:hover {
      background: $off_white;
    }
  }
}

.celeryscript {
  font-size: 1.25rem;
  margin: 0;
  background: $dark_gray;
  color: $off_white;
  padding: 1rem;
  font-size: 1.2rem;
  white-space: pre-wrap;
}
